<?$this->load->view('_header')?>

<div class="container">
<div id="content">
  <?foreach($latestPostList as $latestPostList_item):?>
  <div class="item">
    
    <h2><a href="#"><?=$latestPostList_item['title']?></a></h2>
    
    <p class="date">
      Posted at <?=$latestPostList_item['posted']?>
      with
      <?switch($latestPostList_item['comments']):
        case 0:
          echo 'no comments';
          break;
        case 1:
          echo '<a href="#">1 comment</a>';
          break;
        default:
          echo '<a href="#">'.$latestPostList_item['comments'].'comments</a>';
        endswitch;?>
    </p>
    
    <p class="description"><?=nl2br($latestPostList_item['description'])?></p>
    
    <?if($latestPostList_item['more']):?>
      <p class="more"><a href="#">Read more</a></p>
    <?endif?>
    
  </div>
  <?endforeach?>
</div>
</div>